#include <iostream>
#include "sort.h"
#include "sort.cpp"


int main() {
    int arr[10] = {8, 3, 21, 5, 6, 2, 3, 8, 1, 43};
    Sort<int> sort;

    std::cout << "插入排序结果" << std::endl;
    sort.insert_sort(arr, 10);  //插入排序
    for(int e : arr){
        std::cout << e << " ";
    }
    std::cout << std::endl;

    int arr2[10] = {8, 32, 56, 5, 7, 8, 98, 78, 6, 7};
    sort.bubble_sort(arr2, 10);  //冒泡排序
    std::cout << "冒泡排序结果" << std::endl;
    for(int e : arr2){
        std::cout << e << " ";
    }
    std::cout << std::endl;

    return 0;
}
